package com.wf.chatManagement.service.call;

import com.wf.apicommons.entity.MessageBoard.LeavingAMessage;
import com.wf.apicommons.entity.MessageBoard.MqMessage;
import com.wf.apicommons.utils.CommonResult;
import com.wf.chatManagement.service.call.impl.FeignFallbackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 *调用留言管理微服务
 */
@FeignClient(value = "message-board-services",fallback = FeignFallbackServiceImpl.class)
public interface MessageBoardFeignService {

    /**
     * 推送留言数据到MQ
     * @param data
     * @return
     */
    @PostMapping(value = "/messageBoard/pushLeavingAMessage")
    CommonResult<String> pushLeavingAMessageData(@RequestBody MqMessage<LeavingAMessage> data);
}
